#ifndef PICTUREPAINTDIALOG_H
#define PICTUREPAINTDIALOG_H

#include <QDialog>
#include <QPainter>
#include <QPaintEvent>
#include <QTime>
#include <QTimer>
#include <QTimerEvent>
#include <QPainter>
#include <QImage>
#include <QDebug>
#include <QDir>
#include <QString>
#include <QStringList>



namespace Ui {
class PicturePaintDialog;
}

class PicturePaintDialog : public QDialog
{
    Q_OBJECT

public:
    explicit PicturePaintDialog(QWidget *parent = nullptr);
    ~PicturePaintDialog();

private slots:
    void on_m_btnPre_clicked();

    void on_m_btnNext_clicked();

    void on_m_start_clicked();

    void on_m_end_clicked();

    void on_m_yjStart_clicked();

    void on_m_yjEnd_clicked();

    void onTimeOut();

private:
    Ui::PicturePaintDialog *ui;

    int imageIndex;
    int size;
    QStringList list;
    QString path;

    int timerId;
    QTimer *timer;

public:
    void paintEvent(QPaintEvent *event);
    void timerEvent(QTimerEvent *event);
};

#endif // PICTUREPAINTDIALOG_H
